package pl.praca.magisterska.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pl.praca.magisterska.mapper.OrderMapper;
import pl.praca.magisterska.model.Order;

@Service
public class OrderServiceImpl implements OrderService {

	@Autowired
	private OrderMapper orderMapper;
	
	public Integer selectOrderById(Integer idOrder){
		return orderMapper.selectOrderById(idOrder);
	}
	
	public Integer insertOrder(Order order){
		return orderMapper.insertOrder(order);
	}
}

